package it.valeandre.omino.fragment;

import it.valeandre.omino.R;
import it.valeandre.omino.utils.Utils;
import android.graphics.Typeface;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class SplashFragment extends UpgradableBaseFragment {

	public static final String TAG = "SplashFragment";
	private View mContentView;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		mContentView = inflater.inflate(R.layout.fragment_splash, container, false);
		Typeface myTypeface = Typeface.createFromAsset(getActivity().getAssets(), "fonts/StripeFun.ttf");
	    TextView myTextView = (TextView)mContentView.findViewById(R.id.splash_loading_label);
	    myTextView.setTypeface(myTypeface);
		return mContentView;
	}
	
	@Override
	public void onStart() {
		super.onStart();
		register();
	}

	public void register() {
		Utils.log("i", "SplashFragment - loading feeds...");
		getInterFragmentInterface().register();
//		getInterFragmentInterface().loadSettings(true, null);
	}

	@Override
	public void refresh() {
		 
	}

}
